package com.invengo.module_robot.data.entity;

import android.text.TextUtils;

import java.util.List;

public class BookInfoBean {
    private String bookName;
    private String author;
    private String publisher;
    private String image;
    private List<String> locationName;
    private List<String> content;

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getImage() {
        return image;
    }

    public void setImage(String image) {
        this.image = image;
    }

    public List<String> getLocationName() {
        return locationName;
    }

    public void setLocationName(List<String> locationName) {
        this.locationName = locationName;
    }

    public List<String> getContent() {
        return content;
    }

    public void setContent(List<String> content) {
        this.content = content;
    }

    public void analyzeSearchBean(SearchBean.OneItemsDTO item) {
        this.bookName = item.getBookInfo().getTitle();
        this.publisher= item.getBookInfo().getPublisher();
        this.author = TextUtils.isEmpty(item.getBookInfo().getAuthor())?"佚名":item.getBookInfo().getAuthor();
    }
}
